using System;
using System.Collections.Generic;
namespace IcsSEMCtrl.Com.Secs
{
	public class SecsValue
	{
		private Dictionary<string, string> itemValue = new Dictionary<string, string>();
		private Dictionary<string, string> requestValue = new Dictionary<string, string>();
		private object secsData = null;
		public object SecsData
		{
			get
			{
				return this.secsData;
			}
			set
			{
				this.secsData = value;
			}
		}
		public SecsValue(object secsData)
		{
			this.secsData = secsData;
		}
		public void AddValue(string key, string value)
		{
			this.itemValue.Add(key, value);
		}
		public void AddRequestValue(string key)
		{
			this.requestValue.Add(key, "");
		}
		public void SetRequestValue(string key, string value)
		{
			if (this.requestValue.ContainsKey(key))
			{
				this.requestValue[key] = value;
			}
			else
			{
				this.requestValue.Add(key, value);
			}
		}
		public string GetValue(string key)
		{
			string result;
			this.itemValue.TryGetValue(key, out result);
			return result;
		}
		public string GetRequestValue(string key)
		{
			string result;
			this.requestValue.TryGetValue(key, out result);
			return result;
		}
		public int ItemValueCount()
		{
			return this.itemValue.Count;
		}
	}
}
